﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using DevExpress.XtraEditors;
using iBeauty.App.Common;
using iBeauty.BusinessObjects;
using iBeauty.BLL;
using System.Data;

namespace iBeauty.App.UCControl
{
    public partial class CustomerUc : XtraUserControl
    {
        #region private propertice

        private FrmMain frmMain;

        #endregion

        CustomerBLL service = new CustomerBLL();
        private DataTable dt;
        private DataRow dr;
        public CustomerUc(FrmMain frmMain)
        {
            InitializeComponent();

            this.frmMain = frmMain;
        }

        private void CustomerUc_Load(object sender, EventArgs e)
        {

        }

        private void btnAdd_Click(object sender, EventArgs e)
        {
            BeautyControls.CustomerDetailUc.Check(true);
            BeautyControls.CustomerDetailUc.IsAddNew = true;

            frmMain.ActiveUserControl(BeautyControls.CustomerDetailUc);
        }
    }
}
